--- import Layout from '@layouts/Layout.astro'; import ServiceList from '@components/things/ServiceList.astro'; import Comments from '@components/things/Comments.svelte'; import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro'; import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro'; import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro'; import DockerDetailedInfo from '@components/things/DockerDetailedInfo.astro'; import IosAppDetailedInfo from '@components/things/IosAppDetailedInfo.astro'; import AndroidAppDetailedInfo from '@components/things/AndroidDetailedInfo.astro'; import DiscordDetailedInfo from '@components/things/DiscordDetailedInfo.astro'; import RedditDetailedInfo from '@components/things/RedditDetailedInfo.astro'; import SocialShare from '@components/form/Social.astro'; import DataActions from '@components/things/DataActions.svelte'; import type { AwesomePrivacy, Section, Service } from '../types/Service'; import { fetchData, slugify } from '@utils/fetch-data'; import { fetchGitHubStats } from '@utils/fetch-repo-info'; import { fetchTosdrPrivacy } from '@utils/fetch-privacy-policy'; import { fetchWebsiteInfo } from '@utils/fetch-website-info'; import { fetchDockerData } from '@utils/fetch-docker-instructions'; import { fetchIosInfo } from '@utils/fetch-ios-info'; import { fetchAndroidInfo } from '@utils/fetch-android-info'; import { fetchDiscordInfo } from '@utils/fetch-discord-info'; import { fetchRedditInfo } from '@utils/fetch-reddit-info'; import { parseMarkdown, formatLink } from '@utils/parse-markdown'; import { site } from '@utils/config'; import FontAwesome from '@components/form/FontAwesome.svelte'; import Button from '@components/form/Button.astro'; import SaveListing from '@components/things/SaveListing.svelte'; interface Props extends Service { slug: string; parentSection: Section; categoryName: string; } const { name, description, url, github, tosdrId, discordInvite, subreddit, iosApp, androidApp, icon, followWith, links, securityAudited, openSource, acceptsCrypto, parentSection, categoryName, } = Astro.props; /** * Make a list of keywords, for the tag */ const makeKeyWordTag = () => { const keywords: string[] = []; keywords.push(`open source ${parentSection.name}`); keywords.push(`${parentSection.name} comparison`); (parentSection.alternativeTo || []).forEach((alt: string) => { keywords.push(`${alt} alternative`); }); (parentSection.services || []).forEach((serv: Service) => { keywords.push(`${serv.name} vs`); }); keywords.push('private'); keywords.push('ad free'); keywords.push('encrypted'); keywords.push('open source software'); keywords.push('privacy respecting apps'); keywords.push('free tools'); return keywords.join(', '); }; /** * Make a page title */ const makePageTitle = () => { return `${name} | ${parentSection.name} | ${categoryName} | Awesome Privacy`; }; const makeBreadcrumbs = () => { return [ { name: 'Home', item: '/' }, { name: categoryName, item: slugify(categoryName) }, { name: parentSection.name, item: `${slugify(categoryName)}/${slugify(parentSection.name)}` }, { name: name, item: `${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}` }, ]; }; /** * Make a string page intro, for the description tag */ const makeDescriptionTag = () => { let description = `Analysis of ${name}, and other privacy-respecting ${parentSection.name} `; if (parentSection.services) { const serviceList = parentSection.services.map((serv: Service) => serv.name); description += `Compare ${serviceList.join(' vs ')} more apps. ` } if (parentSection.alternativeTo && parentSection.alternativeTo.length > 0) { description += `The best secure encrypted alternatives to ${parentSection.alternativeTo.join(', ')} in 2024. `; } description += 'All this, and many more free and awesome tools and software.' return description; }; // Return a list of Services, except for the currtent one const filterServices = () => { return parentSection.services.filter((service: Service) => service.name !== name); }; export async function getStaticPaths() { const pages = await fetchData().then((data) => { const results: Array = []; if (!data || !data.categories) return results; (data as AwesomePrivacy).categories.forEach((category) => { category.sections.forEach((section) => { const services = (section.services || []).map((service) => { return { slug: `${slugify(category.name)}/${slugify(section.name)}/${slugify(service.name)}`, parentSection: section, categoryName: category.name, ...service, }; }); results.push(...services); }); }); return results; }); return pages.map((props: Props) => { return {params: { listing: props.slug }, props }; }); } const makePaginationLinks = () => { const allServices = parentSection.services || []; const index = allServices.findIndex(item => item.name === name); const previousItem = index > 0 ? allServices[index - 1].name : null; const nextItem = index < allServices.length - 1 ? allServices[index + 1].name : null; return { previous: previousItem, next: nextItem }; }; const { previous, next } = makePaginationLinks(); const ignoredSites = ['github.gom', 'wikipedia.']; // Fetch detailed data about the services GitHub repo, privacy policy and website const githubData = github ? await fetchGitHubStats(github) : null; const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null; const iosData = iosApp ? await fetchIosInfo(iosApp) : null; const androidData = androidApp ? await fetchAndroidInfo(androidApp) : null; const discordData = discordInvite ? await fetchDiscordInfo(discordInvite) : null; const redditData = subreddit ? await fetchRedditInfo(subreddit) : null; const dockerData = await fetchDockerData(name); const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null; const findPrivacyPolicyLink = () => { if (!privacyData) return null; const docs = privacyData.parameters.documents; if (docs) { const privacyPolicy = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy')); if (privacyPolicy) return privacyPolicy.url; } return `https://tosdr.org/en/service/${tosdrId}`; }; const privacyPolicyLink = findPrivacyPolicyLink(); const getApiEndpoint = () => { return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`; } ---

{name}

{formatLink(url)}
{`${name}

{ securityAudited && ( Security Audited )} { acceptsCrypto && ( Crypto Payments Accepted )} { securityAudited === false && ( No Security Audit )} { (openSource === false) && ( Not Open Source )} { openSource || (github && openSource !== false) ? ( Open Source ) : null }
{ privacyData && privacyData.parameters.points.length > 0 && (

{name} Privacy Policy

)} { github && githubData && (

{name} Source Code

)} { websiteData && (

{name} Website

)} { (androidData && !androidData.error) && (

{name} Android App

)} { iosData && (

{name} iOS App

)} { dockerData && dockerData.found && (

{name} Docker

)} { (discordData || redditData) && (

{name} Socials

)}

{name} Reviews

More {parentSection.name}

About the Data: {name}

API

You can access {name}'s data programmatically via our API. Simply make a GET request to:

{getApiEndpoint()}

The REST API is free, no-auth and CORS-enabled. To learn more, view the Swagger Docs or read the API Usage Guide.

About the Data

Beyond the user-submitted YAML you see above, we also augment each listing with additional data dynamically fetched from several sources. To learn more about where the rest of data included in this page comes from, and how it is computed, see the About the Data section of our About page.

Share {name}

Help your friends compare {parentSection.name}, and pick privacy-respecting software and services.
Share {name} and Awesome Privacy with your network!

{ previous ? ( ) :

} View {parentSection.name} ({(parentSection.services || []).length}) { next && ( )}